<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>搜索商品</title>
    <link rel="stylesheet" href="./assets/mui/css/mui.min.css">
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="./assets/zepto/zepto.min.js"></script>
    <script src="./assets/mui/js/mui.min.js"></script>
    <script src="./js/search.js"></script>
    <script src="./assets/artTemplate/template-native.js"></script>
    <script src="./js/public.js"></script>
</head>

<body>
    <!-- 顶部部分 -->
    <header class="mui-bar mui-bar-nav myheader">
        <a href="javascript:history.go(-1)" class="mui-icon mui-icon-arrowleft mui-pull-left"></a>
        <h1 class="mui-title">搜索中心</h1>
    </header>
    <!-- 内容部分 -->
    <div class="mui-content">
        <div class="container">
            <div class="search">
                <input type="text" placeholder="请输入搜索商品">
                <input type="button" value="搜索" id="search-btn">
            </div>
            <div class="history mui-clearfix">
                <span class="mui-pull-left">搜索历史</span>
                <span class="mui-pull-right" id="clear-history">清空历史</span>
                <i class="mui-icon mui-icon-trash mui-pull-right"></i>
            </div>
            <ul class="mui-table-view" id="key-history">
                <!-- <li class="mui-table-view-cell">Item 1</li> -->
            </ul>
        </div>
    </div>
    <!-- 底部导航 -->
    <nav class="mui-bar mui-bar-tab footer">
        <a class="mui-tab-item" href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" href="category.html">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="cart.html">
            <i class="mui-icon fa fa-shopping-cart" aria-hidden="true"></i>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="user.html">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>
    <script type="text/template" id="tem-key">
        <% for(var i=0;i<res.length;i++){ %>
            <li class="mui-table-view-cell">
                <%= res[i] %>
            </li>
            <% } %>
    </script>
</body>

</html>